from typing import List

from pydantic import BaseModel

headers = {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
    "Accept-Encoding": "gzip, deflate",
    "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
}

class DownHomeCntModel(BaseModel):
    marks: List[str] = []

class DownClassModel(BaseModel):
    id: str = ''
    page: str = ''
    marks: List[str] = []


class SaveClassModel(BaseModel):
    id: str = ''
    page: str = ''
    html: str = ''
    full_class: str = ''

class DownArticleModel(BaseModel):
    id: str = ''
    name: str = ''
    marks: List[str] = []

class SaveArticleModel(BaseModel):
    id: str = ''
    name: str = ''
    parent_code: str = ''
    parent_class: str = ''
    full_code: str = ''
    full_class: str = ''
    html: str = ''

